function delMemberDialog(
    {
        memberId,
        memberName = "",
        callback = Function()
    }
) {
    if (!memberId) {
        return $.toast("成员ID不能为空");
    }

    const $dialogWidget = $.dialog(
        memberName ? "是否确定删除成员(" + memberName + ")" : "是否确定删除该成员",
        {
            title: "删除成员",
            width: "300px",
            ok() {
                delMember({
                    memberId
                }, res => {
                    if (res.Code !== 10000) {
                        return $.toast(res.Message);
                    }

                    $dialogWidget.remove();
                    $.toast("删除成功");
                    callback();
                })
            }
        }
    )

    function delMember(param, callback = Function()) {
        return $.sApi({
            data: param,
            url: "/api/Member/delMember",
        }, callback)
    }
}